package de.tum.datatypes;


/**
 * Abstract datatype that has the basic properties of a exercise
 * 
 * @author Rupert
 *
 */
public abstract class Exercise {
	private String question;
	private int maxPoints;
	private int index;
	
	public Exercise(int index, String question, int maxPoints){
		this.setQuestion(question);
		this.setMaxPoints(maxPoints);
		this.setIndex(index);
	}

	/*
	 * GETTERS AND SETTERS
	 */
	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public int getMaxPoints() {
		return maxPoints;
	}

	public void setMaxPoints(int maxPoints) {
		this.maxPoints = maxPoints;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}
	
}
